package pl.vanta.utils.ejb.ejbqlb.conditions;

public enum ConditionType
{
	IS_NULL("IS NULL"),
	IS_NOT_NULL("IS NOT NULL"),
	IS_EMPTY("IS EMPTY"),
	IS_NOT_EMPTY("IS NOT EMPTY"),
	
	LIKE("LIKE {0}"),
	NOT_LIKE("NOT LIKE {0}"),
	EQUALS("= {0}"),
	NOT_EQUALS("<> {0}"),
	GREATER("> {0}"),
	LESS("< {0}"),
	GREATER_OR_EQUAL(">= {0}"),
	LESS_OR_EQUAL("<= {0}"),
	MEMBER_OF("MEMBER OF {0}"),
	NOT_MEMBER_OF("NOT MEMBER OF {0}"),
	
	BETWEEN("BETWEEN {0} AND {1}"),
	NOT_BETWEEN("NOT BETWEEN {0} AND {1}"),
	
	IN("IN({0})"),
	NOT_IN("NOT IN({0})"),
	;

	private String operator;

	private ConditionType(String operator)
	{
		this.operator = operator;
	}

	public String getOperator()
	{
		return this.operator;
	}
}